<?php
#######################################################
# Script Created By Sena Sentosa                      #
# Thanks To Allah                                     #
# Berkat Doa Ibu                                      #
# Jangan Dihapus Created By                           #
# Hargai Karya Orang Lain Jika Anda Ingin Dihargai!   #
# Saya Juga Pengen terkenal atuhhh!!                  #
#######################################################

$access_token = "Token Loe";

$sena = array('kalimat' => 'kalimat post',); //tambahkan , agar bisa lebih dari 2 kalimat post
$limit = "10"; //bisa diganti sesuai keinginan note: max 50 aja biar gak kena blokir
$grup = json_decode(auto('https://graph.facebook.com/me/groups?access_token='.$access_token.'&method=GET&limit='.$limit.''),true);

for($i=1;$i<=count($grup[data]);$i++){
echo auto('https://graph.facebook.com/'.$grup[data][$i-1][id].'/feed?message='.urlencode($sena[kalimat]).'&access_token='.$access_token.'&method=post').'<hr/>';
   }


function auto($url){
   $ch=curl_init();
   curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
   curl_setopt($ch,CURLOPT_URL,$url);
   $cx=curl_exec($ch);
  curl_close($ch);
  return($cx);
  }
?>